<?php
//include("AllWeb.inc.php");
$arrWeb = array("");

foreach($arrWeb as $strWeb){
	print $strWeb."\n";
	//$_SERVER["DOCUMENT_ROOT"] = "/home/share/www/".$strWeb."/secure";
	include($_SERVER["DOCUMENT_ROOT"]."/db.inc.php");
	include($_SERVER["DOCUMENT_ROOT"]."/common/Lotto.inc.php");
	include($_SERVER["DOCUMENT_ROOT"]."/modules/Tool.lib.php");
	include($_SERVER["DOCUMENT_ROOT"]."/modules/BetLimit.lib.php");
	include($_SERVER["DOCUMENT_ROOT"]."/modules/Lotto.lib.php");
	include($_SERVER["DOCUMENT_ROOT"]."/modules/LogRecord.lib.php");
	if(!MakeGameGambleType()){
		print $GLOBALS["errorhidden"]."\n";
	}else{
		print "GameGambleType OK!\n";
	}
	foreach($_arrLotto as $intLID => $arrLotto){
		if(!MakeBetParamFileByLID($intLID, $arrLotto["LType"])){
			print $GLOBALS["errorhidden"]."\n";
		}else{
			print "BetParam OK!\n";
		}
	}
	if(!MakeLottoLimitFile()){
		print $GLOBALS["errorhidden"]."\n";
	}else{
		print "LottoLimit OK!\n";
	}
	if(!makeSystemParamFile()){
		print $GLOBALS["errorhidden"]."<br>\n";
	}else{
		print "SystemParam OK!\n";
	}
}
?>